package com.google.code.virtualhockey.vhx.client.vp;

import com.google.code.virtualhockey.vhx.client.res.VhxResources;
import com.google.code.virtualhockey.vhx.client.uitools.IView;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.ResizeComposite;
import com.google.gwt.user.client.ui.StackLayoutPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Singleton;

/**
 * Represents the application main menu.
 */
@Singleton
public class MenuView extends ResizeComposite implements IView {

  interface Binder extends UiBinder<StackLayoutPanel, MenuView> {
  }

  private static final Binder BINDER = GWT.create( Binder.class );

  @UiField( provided = true )
  final VhxResources m_res = VhxResources.INSTANCE;

  @UiField
  StackLayoutPanel m_stackPanel;

  public MenuView() {
    initWidget( BINDER.createAndBindUi( this ) );
  }

  @Override
  public Widget getViewWidget() {
    return this;
  }
}
